<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts: fatfs.hal/diskio.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">ESP8266ILI9341DisplayProject</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_2441aed259fe884ac729d0a0c31d0193.html">fatfs.hal</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">diskio.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="diskio_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*-----------------------------------------------------------------------</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">/  Low level disk interface modlue include file   (C)ChaN, 2014</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">/-----------------------------------------------------------------------*/</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;</div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#ifndef _DISKIO_DEFINED</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#define _DISKIO_DEFINED</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;</div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;</div><div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="diskio_8h.html#a1dd0d2b46dce637878416d489d2ddde2">   12</a></span>&#160;<span class="preprocessor">#define _USE_WRITE  1   </span><span class="comment">/* 1: Enable disk_write function */</span><span class="preprocessor"></span></div><div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="diskio_8h.html#afe6d1224687dede333375a2475c78ff6">   13</a></span>&#160;<span class="preprocessor">#define _USE_IOCTL  1   </span><span class="comment">/* 1: Enable disk_ioctl fucntion */</span><span class="preprocessor"></span></div><div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="diskio_8h.html#ab9be3169a4edb65cd6c59bd26c927846">   14</a></span>&#160;<span class="preprocessor">#define _USE_ISDIO  1   </span><span class="comment">/* 1: Enable iSDIO controls via disk_ioctl */</span><span class="preprocessor"></span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="integer_8h.html">integer.h</a>&quot;</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">/* Status of Disk Functions */</span></div><div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="diskio_8h.html#adba6790898ce4029c20a34b898ce73c1">   20</a></span>&#160;<span class="keyword">typedef</span> <a class="code" href="integer_8h.html#a4ae1dab0fb4b072a66584546209e7d58">BYTE</a>    <a class="code" href="diskio_8h.html#adba6790898ce4029c20a34b898ce73c1">DSTATUS</a>;</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">/* Results of Disk Functions */</span></div><div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="diskio_8h.html#aacdfef1dad6565f65c26d12fe0ea4b2b">   23</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> {</div><div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="diskio_8h.html#aacdfef1dad6565f65c26d12fe0ea4b2ba2ea4b6ef3fffc17dd1d38ab5c2837737">   24</a></span>&#160;    <a class="code" href="diskio_8h.html#aacdfef1dad6565f65c26d12fe0ea4b2ba2ea4b6ef3fffc17dd1d38ab5c2837737">RES_OK</a> = 0,     <span class="comment">/* 0: Successful */</span></div><div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="diskio_8h.html#aacdfef1dad6565f65c26d12fe0ea4b2ba78011f5557679ec178fb40bd21e89840">   25</a></span>&#160;    <a class="code" href="diskio_8h.html#aacdfef1dad6565f65c26d12fe0ea4b2ba78011f5557679ec178fb40bd21e89840">RES_ERROR</a>,      <span class="comment">/* 1: R/W Error */</span></div><div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="diskio_8h.html#aacdfef1dad6565f65c26d12fe0ea4b2ba442a6d4393dc404827067bc4e981b322">   26</a></span>&#160;    <a class="code" href="diskio_8h.html#aacdfef1dad6565f65c26d12fe0ea4b2ba442a6d4393dc404827067bc4e981b322">RES_WRPRT</a>,      <span class="comment">/* 2: Write Protected */</span></div><div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="diskio_8h.html#aacdfef1dad6565f65c26d12fe0ea4b2baad64c27c69eb1ff39ae67c5f77bb2b1d">   27</a></span>&#160;    <a class="code" href="diskio_8h.html#aacdfef1dad6565f65c26d12fe0ea4b2baad64c27c69eb1ff39ae67c5f77bb2b1d">RES_NOTRDY</a>,     <span class="comment">/* 3: Not Ready */</span></div><div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="diskio_8h.html#aacdfef1dad6565f65c26d12fe0ea4b2baf4dcc07fd46310b5495fa8025c89a9f3">   28</a></span>&#160;    <a class="code" href="diskio_8h.html#aacdfef1dad6565f65c26d12fe0ea4b2baf4dcc07fd46310b5495fa8025c89a9f3">RES_PARERR</a>      <span class="comment">/* 4: Invalid Parameter */</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;} <a class="code" href="diskio_8h.html#aacdfef1dad6565f65c26d12fe0ea4b2b">DRESULT</a>;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment">/* Command structure for iSDIO ioctl command */</span></div><div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="structSDIO__CTRL.html">   32</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>{</div><div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="structSDIO__CTRL.html#a2f0a17848a6c7c58f826d1888469e6e3">   33</a></span>&#160;    <a class="code" href="integer_8h.html#a4ae1dab0fb4b072a66584546209e7d58">BYTE</a>    <a class="code" href="structSDIO__CTRL.html#a2f0a17848a6c7c58f826d1888469e6e3">func</a>;   <span class="comment">/* Function number: 0..7 */</span></div><div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="structSDIO__CTRL.html#a44edc7d37688ac4f3a1ba3d66e909767">   34</a></span>&#160;    <a class="code" href="integer_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a>    <a class="code" href="structSDIO__CTRL.html#a44edc7d37688ac4f3a1ba3d66e909767">ndata</a>;  <span class="comment">/* Number of bytes to transfer: 1..512, or mask + data */</span></div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="structSDIO__CTRL.html#a15025848d3f3733f366504d30a1d9bb2">   35</a></span>&#160;    <a class="code" href="integer_8h.html#ad342ac907eb044443153a22f964bf0af">DWORD</a>   <a class="code" href="structSDIO__CTRL.html#a15025848d3f3733f366504d30a1d9bb2">addr</a>;   <span class="comment">/* Register address: 0..0x1FFFF */</span></div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="structSDIO__CTRL.html#ab04c9adb4d3027a14925fb30b469f0c0">   36</a></span>&#160;    <span class="keywordtype">void</span>*   <a class="code" href="structSDIO__CTRL.html#ab04c9adb4d3027a14925fb30b469f0c0">data</a>;   <span class="comment">/* Pointer to the data (to be written | read buffer) */</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;} <a class="code" href="structSDIO__CTRL.html">SDIO_CTRL</a>;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="comment">/*---------------------------------------*/</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="comment">/* Prototypes for disk control functions */</span></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;DSTATUS <a class="code" href="diskio_8h.html#a09cdaa6f36fa409bdf002727bff98eb1">disk_initialize</a> (<a class="code" href="integer_8h.html#a4ae1dab0fb4b072a66584546209e7d58">BYTE</a> pdrv);</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;DSTATUS <a class="code" href="diskio_8h.html#a8348ac5ee6d709420c02e45c111f4793">disk_status</a> (<a class="code" href="integer_8h.html#a4ae1dab0fb4b072a66584546209e7d58">BYTE</a> pdrv);</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;DRESULT <a class="code" href="diskio_8h.html#a075d27f59f550e2cee07d00abcff32e0">disk_read</a> (<a class="code" href="integer_8h.html#a4ae1dab0fb4b072a66584546209e7d58">BYTE</a> pdrv, <a class="code" href="integer_8h.html#a4ae1dab0fb4b072a66584546209e7d58">BYTE</a>* buff, <a class="code" href="integer_8h.html#ad342ac907eb044443153a22f964bf0af">DWORD</a> sector, <a class="code" href="integer_8h.html#a36cb3b01d81ffd844bbbfb54003e06ec">UINT</a> count);</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;DRESULT <a class="code" href="diskio_8h.html#a0fe56ee4831a44b09cfd96856e069634">disk_write</a> (<a class="code" href="integer_8h.html#a4ae1dab0fb4b072a66584546209e7d58">BYTE</a> pdrv, <span class="keyword">const</span> <a class="code" href="integer_8h.html#a4ae1dab0fb4b072a66584546209e7d58">BYTE</a>* buff, <a class="code" href="integer_8h.html#ad342ac907eb044443153a22f964bf0af">DWORD</a> sector, <a class="code" href="integer_8h.html#a36cb3b01d81ffd844bbbfb54003e06ec">UINT</a> count);</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;DRESULT <a class="code" href="diskio_8h.html#ab00fa450a811dbdabe3c655c1a36fab4">disk_ioctl</a> (<a class="code" href="integer_8h.html#a4ae1dab0fb4b072a66584546209e7d58">BYTE</a> pdrv, <a class="code" href="integer_8h.html#a4ae1dab0fb4b072a66584546209e7d58">BYTE</a> cmd, <span class="keywordtype">void</span>* buff);</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="keywordtype">void</span> <a class="code" href="diskio_8h.html#a045f8898a243c16aca4e64e069c49c03">disk_timerproc</a> (<span class="keywordtype">void</span>);</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="comment">/* Disk Status Bits (DSTATUS) */</span></div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="diskio_8h.html#abd6503c70d862b979a3f7080a59e9acd">   53</a></span>&#160;<span class="preprocessor">#define STA_NOINIT      0x01    </span><span class="comment">/* Drive not initialized */</span><span class="preprocessor"></span></div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="diskio_8h.html#aec625080763d6cf487e550a6c9a2dd19">   54</a></span>&#160;<span class="preprocessor">#define STA_NODISK      0x02    </span><span class="comment">/* No medium in the drive */</span><span class="preprocessor"></span></div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="diskio_8h.html#a9ec6dc5f6620a33fabe388d3a111ca8c">   55</a></span>&#160;<span class="preprocessor">#define STA_PROTECT     0x04    </span><span class="comment">/* Write protected */</span><span class="preprocessor"></span></div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="comment">/* Command code for disk_ioctrl fucntion */</span></div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="comment">/* Generic command (Used by FatFs) */</span></div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="diskio_8h.html#a1b3c492f9aec325f0655941b75256f3c">   61</a></span>&#160;<span class="preprocessor">#define CTRL_SYNC           0   </span><span class="comment">/* Complete pending write process (needed at _FS_READONLY == 0) */</span><span class="preprocessor"></span></div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="diskio_8h.html#a570216006f6a8fc4e1698b1bbb2d1dde">   62</a></span>&#160;<span class="preprocessor">#define GET_SECTOR_COUNT    1   </span><span class="comment">/* Get media size (needed at _USE_MKFS == 1) */</span><span class="preprocessor"></span></div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="diskio_8h.html#ac73b5cf2135cbd459d109b96c9aa346a">   63</a></span>&#160;<span class="preprocessor">#define GET_SECTOR_SIZE     2   </span><span class="comment">/* Get sector size (needed at _MAX_SS != _MIN_SS) */</span><span class="preprocessor"></span></div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="diskio_8h.html#aec3bb4dfe075d0ba2f3b07b300a95500">   64</a></span>&#160;<span class="preprocessor">#define GET_BLOCK_SIZE      3   </span><span class="comment">/* Get erase block size (needed at _USE_MKFS == 1) */</span><span class="preprocessor"></span></div><div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="diskio_8h.html#af09fd84bea8d4e889e272471f44d60d6">   65</a></span>&#160;<span class="preprocessor">#define CTRL_TRIM           4   </span><span class="comment">/* Inform device that the data on the block of sectors is no longer used (needed at _USE_TRIM == 1) */</span><span class="preprocessor"></span></div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;<span class="comment">/* Generic command (Not used by FatFs) */</span></div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="diskio_8h.html#add07021167069f5914211a2f8830fabb">   68</a></span>&#160;<span class="preprocessor">#define CTRL_FORMAT         5   </span><span class="comment">/* Create physical format on the media */</span><span class="preprocessor"></span></div><div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="diskio_8h.html#a69bec9079062f809c3586977b2dc5d79">   69</a></span>&#160;<span class="preprocessor">#define CTRL_POWER_IDLE     6   </span><span class="comment">/* Put the device idle state */</span><span class="preprocessor"></span></div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="diskio_8h.html#aa1f5a55ea2a24d274c16e51c111c97d8">   70</a></span>&#160;<span class="preprocessor">#define CTRL_POWER_OFF      7   </span><span class="comment">/* Put the device off state */</span><span class="preprocessor"></span></div><div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="diskio_8h.html#af40e5cf3000553a978ff6e30dae70858">   71</a></span>&#160;<span class="preprocessor">#define CTRL_LOCK           8   </span><span class="comment">/* Lock media removal */</span><span class="preprocessor"></span></div><div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="diskio_8h.html#a5d06770de580667138ca6101ae5138ac">   72</a></span>&#160;<span class="preprocessor">#define CTRL_UNLOCK         9   </span><span class="comment">/* Unlock media removal */</span><span class="preprocessor"></span></div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="diskio_8h.html#a5e40e16d2d7ce196858950f070b9ec03">   73</a></span>&#160;<span class="preprocessor">#define CTRL_EJECT          10  </span><span class="comment">/* Eject media */</span><span class="preprocessor"></span></div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<span class="comment">/* MMC/SDC specific command (Not used by FatFs) */</span></div><div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="diskio_8h.html#aba3a81a9a47c7d1bf3ac7749bc72dcfd">   76</a></span>&#160;<span class="preprocessor">#define MMC_GET_TYPE        50  </span><span class="comment">/* Get card type */</span><span class="preprocessor"></span></div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="diskio_8h.html#ae3b858b81287929f7c7bea3b7aec3087">   77</a></span>&#160;<span class="preprocessor">#define MMC_GET_CSD         51  </span><span class="comment">/* Get CSD */</span><span class="preprocessor"></span></div><div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="diskio_8h.html#a17ad303dd18b19a4c90ab30a8a1c14c4">   78</a></span>&#160;<span class="preprocessor">#define MMC_GET_CID         52  </span><span class="comment">/* Get CID */</span><span class="preprocessor"></span></div><div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="diskio_8h.html#aff118ba6bd7a9fe7699cee049cff5d6c">   79</a></span>&#160;<span class="preprocessor">#define MMC_GET_OCR         53  </span><span class="comment">/* Get OCR */</span><span class="preprocessor"></span></div><div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="diskio_8h.html#a5cc43c8449b872e16ea5ab42592f793e">   80</a></span>&#160;<span class="preprocessor">#define MMC_GET_SDSTAT      54  </span><span class="comment">/* Get SD status */</span><span class="preprocessor"></span></div><div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="diskio_8h.html#a9eb2d8ccc0b89299bc442396811f8723">   81</a></span>&#160;<span class="preprocessor">#define ISDIO_READ          55  </span><span class="comment">/* Read data form SD iSDIO register */</span><span class="preprocessor"></span></div><div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="diskio_8h.html#a9637dcd58e0f1f301edf0cccff9e3507">   82</a></span>&#160;<span class="preprocessor">#define ISDIO_WRITE         56  </span><span class="comment">/* Write data to SD iSDIO register */</span><span class="preprocessor"></span></div><div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="diskio_8h.html#aa79f4043470c49016d80558773e740a5">   83</a></span>&#160;<span class="preprocessor">#define ISDIO_MRITE         57  </span><span class="comment">/* Masked write data to SD iSDIO register */</span><span class="preprocessor"></span></div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="comment">/* ATA/CF specific command (Not used by FatFs) */</span></div><div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="diskio_8h.html#a23f5fff3341e98825ea1f7367fd09f1a">   86</a></span>&#160;<span class="preprocessor">#define ATA_GET_REV         60  </span><span class="comment">/* Get F/W revision */</span><span class="preprocessor"></span></div><div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="diskio_8h.html#a31f556ab98ab80c39058b38d9283865d">   87</a></span>&#160;<span class="preprocessor">#define ATA_GET_MODEL       61  </span><span class="comment">/* Get model name */</span><span class="preprocessor"></span></div><div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="diskio_8h.html#a469c4f989757ee1ee404134fea3c74ba">   88</a></span>&#160;<span class="preprocessor">#define ATA_GET_SN          62  </span><span class="comment">/* Get serial number */</span><span class="preprocessor"></span></div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;<span class="comment">/* MMC card type flags (MMC_GET_TYPE) */</span></div><div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="diskio_8h.html#ac52ec66c278308382fdf7b2c57f0ad8c">   92</a></span>&#160;<span class="preprocessor">#define CT_MMC      0x01        </span><span class="comment">/* MMC ver 3 */</span><span class="preprocessor"></span></div><div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="diskio_8h.html#ad1c9fc863ec15d3320b3850dc571626e">   93</a></span>&#160;<span class="preprocessor">#define CT_SD1      0x02        </span><span class="comment">/* SD ver 1 */</span><span class="preprocessor"></span></div><div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="diskio_8h.html#a0db1b71113e73184a5ba511e7020a922">   94</a></span>&#160;<span class="preprocessor">#define CT_SD2      0x04        </span><span class="comment">/* SD ver 2 */</span><span class="preprocessor"></span></div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="diskio_8h.html#ae76d94ac83c68d1f025cb0bcad77fa5d">   95</a></span>&#160;<span class="preprocessor">#define CT_SDC      (CT_SD1|CT_SD2) </span><span class="comment">/* SD */</span><span class="preprocessor"></span></div><div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="diskio_8h.html#a7d48ce54c27f4f60666309e8627fab47">   96</a></span>&#160;<span class="preprocessor">#define CT_BLOCK    0x08        </span><span class="comment">/* Block addressing */</span><span class="preprocessor"></span></div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;}</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="integer_8h_html_a197942eefa7db30960ae396d68339b97"><div class="ttname"><a href="integer_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a></div><div class="ttdeci">unsigned short WORD</div><div class="ttdef"><b>Definition:</b> <a href="integer_8h_source.html#l00026">integer.h:26</a></div></div>
<div class="ttc" id="diskio_8h_html_aacdfef1dad6565f65c26d12fe0ea4b2baad64c27c69eb1ff39ae67c5f77bb2b1d"><div class="ttname"><a href="diskio_8h.html#aacdfef1dad6565f65c26d12fe0ea4b2baad64c27c69eb1ff39ae67c5f77bb2b1d">RES_NOTRDY</a></div><div class="ttdef"><b>Definition:</b> <a href="diskio_8h_source.html#l00027">diskio.h:27</a></div></div>
<div class="ttc" id="diskio_8h_html_a0fe56ee4831a44b09cfd96856e069634"><div class="ttname"><a href="diskio_8h.html#a0fe56ee4831a44b09cfd96856e069634">disk_write</a></div><div class="ttdeci">DRESULT disk_write(BYTE pdrv, const BYTE *buff, DWORD sector, UINT count)</div><div class="ttdef"><b>Definition:</b> <a href="diskio_8c_source.html#l00104">diskio.c:104</a></div></div>
<div class="ttc" id="diskio_8h_html_aacdfef1dad6565f65c26d12fe0ea4b2ba78011f5557679ec178fb40bd21e89840"><div class="ttname"><a href="diskio_8h.html#aacdfef1dad6565f65c26d12fe0ea4b2ba78011f5557679ec178fb40bd21e89840">RES_ERROR</a></div><div class="ttdef"><b>Definition:</b> <a href="diskio_8h_source.html#l00025">diskio.h:25</a></div></div>
<div class="ttc" id="structSDIO__CTRL_html_a15025848d3f3733f366504d30a1d9bb2"><div class="ttname"><a href="structSDIO__CTRL.html#a15025848d3f3733f366504d30a1d9bb2">SDIO_CTRL::addr</a></div><div class="ttdeci">DWORD addr</div><div class="ttdef"><b>Definition:</b> <a href="diskio_8h_source.html#l00035">diskio.h:35</a></div></div>
<div class="ttc" id="diskio_8h_html_aacdfef1dad6565f65c26d12fe0ea4b2baf4dcc07fd46310b5495fa8025c89a9f3"><div class="ttname"><a href="diskio_8h.html#aacdfef1dad6565f65c26d12fe0ea4b2baf4dcc07fd46310b5495fa8025c89a9f3">RES_PARERR</a></div><div class="ttdef"><b>Definition:</b> <a href="diskio_8h_source.html#l00028">diskio.h:28</a></div></div>
<div class="ttc" id="integer_8h_html_ad342ac907eb044443153a22f964bf0af"><div class="ttname"><a href="integer_8h.html#ad342ac907eb044443153a22f964bf0af">DWORD</a></div><div class="ttdeci">unsigned long DWORD</div><div class="ttdef"><b>Definition:</b> <a href="integer_8h_source.html#l00031">integer.h:31</a></div></div>
<div class="ttc" id="structSDIO__CTRL_html_a2f0a17848a6c7c58f826d1888469e6e3"><div class="ttname"><a href="structSDIO__CTRL.html#a2f0a17848a6c7c58f826d1888469e6e3">SDIO_CTRL::func</a></div><div class="ttdeci">BYTE func</div><div class="ttdef"><b>Definition:</b> <a href="diskio_8h_source.html#l00033">diskio.h:33</a></div></div>
<div class="ttc" id="diskio_8h_html_a8348ac5ee6d709420c02e45c111f4793"><div class="ttname"><a href="diskio_8h.html#a8348ac5ee6d709420c02e45c111f4793">disk_status</a></div><div class="ttdeci">DSTATUS disk_status(BYTE pdrv)</div><div class="ttdef"><b>Definition:</b> <a href="diskio_8c_source.html#l00031">diskio.c:31</a></div></div>
<div class="ttc" id="diskio_8h_html_adba6790898ce4029c20a34b898ce73c1"><div class="ttname"><a href="diskio_8h.html#adba6790898ce4029c20a34b898ce73c1">DSTATUS</a></div><div class="ttdeci">BYTE DSTATUS</div><div class="ttdef"><b>Definition:</b> <a href="diskio_8h_source.html#l00020">diskio.h:20</a></div></div>
<div class="ttc" id="diskio_8h_html_aacdfef1dad6565f65c26d12fe0ea4b2b"><div class="ttname"><a href="diskio_8h.html#aacdfef1dad6565f65c26d12fe0ea4b2b">DRESULT</a></div><div class="ttdeci">DRESULT</div><div class="ttdef"><b>Definition:</b> <a href="diskio_8h_source.html#l00023">diskio.h:23</a></div></div>
<div class="ttc" id="diskio_8h_html_a045f8898a243c16aca4e64e069c49c03"><div class="ttname"><a href="diskio_8h.html#a045f8898a243c16aca4e64e069c49c03">disk_timerproc</a></div><div class="ttdeci">void disk_timerproc(void)</div><div class="ttdef"><b>Definition:</b> <a href="diskio_8c_source.html#l00157">diskio.c:157</a></div></div>
<div class="ttc" id="integer_8h_html_a4ae1dab0fb4b072a66584546209e7d58"><div class="ttname"><a href="integer_8h.html#a4ae1dab0fb4b072a66584546209e7d58">BYTE</a></div><div class="ttdeci">unsigned char BYTE</div><div class="ttdef"><b>Definition:</b> <a href="integer_8h_source.html#l00022">integer.h:22</a></div></div>
<div class="ttc" id="diskio_8h_html_a075d27f59f550e2cee07d00abcff32e0"><div class="ttname"><a href="diskio_8h.html#a075d27f59f550e2cee07d00abcff32e0">disk_read</a></div><div class="ttdeci">DRESULT disk_read(BYTE pdrv, BYTE *buff, DWORD sector, UINT count)</div><div class="ttdef"><b>Definition:</b> <a href="diskio_8c_source.html#l00077">diskio.c:77</a></div></div>
<div class="ttc" id="diskio_8h_html_aacdfef1dad6565f65c26d12fe0ea4b2ba2ea4b6ef3fffc17dd1d38ab5c2837737"><div class="ttname"><a href="diskio_8h.html#aacdfef1dad6565f65c26d12fe0ea4b2ba2ea4b6ef3fffc17dd1d38ab5c2837737">RES_OK</a></div><div class="ttdef"><b>Definition:</b> <a href="diskio_8h_source.html#l00024">diskio.h:24</a></div></div>
<div class="ttc" id="diskio_8h_html_a09cdaa6f36fa409bdf002727bff98eb1"><div class="ttname"><a href="diskio_8h.html#a09cdaa6f36fa409bdf002727bff98eb1">disk_initialize</a></div><div class="ttdeci">DSTATUS disk_initialize(BYTE pdrv)</div><div class="ttdef"><b>Definition:</b> <a href="diskio_8c_source.html#l00054">diskio.c:54</a></div></div>
<div class="ttc" id="diskio_8h_html_ab00fa450a811dbdabe3c655c1a36fab4"><div class="ttname"><a href="diskio_8h.html#ab00fa450a811dbdabe3c655c1a36fab4">disk_ioctl</a></div><div class="ttdeci">DRESULT disk_ioctl(BYTE pdrv, BYTE cmd, void *buff)</div><div class="ttdef"><b>Definition:</b> <a href="diskio_8c_source.html#l00131">diskio.c:131</a></div></div>
<div class="ttc" id="structSDIO__CTRL_html_a44edc7d37688ac4f3a1ba3d66e909767"><div class="ttname"><a href="structSDIO__CTRL.html#a44edc7d37688ac4f3a1ba3d66e909767">SDIO_CTRL::ndata</a></div><div class="ttdeci">WORD ndata</div><div class="ttdef"><b>Definition:</b> <a href="diskio_8h_source.html#l00034">diskio.h:34</a></div></div>
<div class="ttc" id="integer_8h_html_a36cb3b01d81ffd844bbbfb54003e06ec"><div class="ttname"><a href="integer_8h.html#a36cb3b01d81ffd844bbbfb54003e06ec">UINT</a></div><div class="ttdeci">unsigned int UINT</div><div class="ttdef"><b>Definition:</b> <a href="integer_8h_source.html#l00019">integer.h:19</a></div></div>
<div class="ttc" id="structSDIO__CTRL_html_ab04c9adb4d3027a14925fb30b469f0c0"><div class="ttname"><a href="structSDIO__CTRL.html#ab04c9adb4d3027a14925fb30b469f0c0">SDIO_CTRL::data</a></div><div class="ttdeci">void * data</div><div class="ttdef"><b>Definition:</b> <a href="diskio_8h_source.html#l00036">diskio.h:36</a></div></div>
<div class="ttc" id="integer_8h_html"><div class="ttname"><a href="integer_8h.html">integer.h</a></div></div>
<div class="ttc" id="structSDIO__CTRL_html"><div class="ttname"><a href="structSDIO__CTRL.html">SDIO_CTRL</a></div><div class="ttdef"><b>Definition:</b> <a href="diskio_8h_source.html#l00032">diskio.h:32</a></div></div>
<div class="ttc" id="diskio_8h_html_aacdfef1dad6565f65c26d12fe0ea4b2ba442a6d4393dc404827067bc4e981b322"><div class="ttname"><a href="diskio_8h.html#aacdfef1dad6565f65c26d12fe0ea4b2ba442a6d4393dc404827067bc4e981b322">RES_WRPRT</a></div><div class="ttdef"><b>Definition:</b> <a href="diskio_8h_source.html#l00026">diskio.h:26</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 31 2018 21:22:16 for ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
